﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EnvironmentManagerSystem.EvaluationUnitManager
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (StfInfo.ReSession()) return; if (!IsPostBack)
            {
                if (Session["UserName"].ToString().Length > 5)
                {
                    use.Text = Session["UserName"].ToString().Substring(0, 5);
                    use.ToolTip = Session["UserName"].ToString();
                }
                else
                {
                    use.Text = Session["UserName"].ToString();
                    use.ToolTip = Session["UserName"].ToString();
                }
                time.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
                la.Text = Session["roleid"].ToString();
            }
        }
    }
}
